package com.aoxon.cargo.service;

import java.util.HashMap;

import com.aoxon.cargo.bean.GsonBean;
import com.aoxon.cargo.cache.keyCache;
import com.aoxon.cargo.util.MD5;

/**
 * 修改商家密码的服务
 * 
 * @author ZZJ
 * 
 */
public class RevampPasswordService extends MyService {

	/**
	 * 提交修改密码
	 * 
	 * @return
	 */
	public GsonBean execute(String oldPassword,
			String newPassword) {

		url = "reNewPassword" + suffix;

		params = new HashMap<String, String>();
		params.put("newSupPassword", new MD5().encrypt(newPassword));
		params.put("supPassword", new MD5().encrypt(oldPassword));
		params.put("supId", String.valueOf(keyCache.supId));
		params.put("key", keyCache.key);

		return doPost();

	}

}
